@mixin image-rendering ($mode:auto) {

  @if ($mode == crisp-edges) {
      image-rendering: -moz-crisp-edges;
      image-rendering: -o-crisp-edges;
      image-rendering: -webkit-optimize-contrast;
      image-rendering: crisp-edges;
  }

  @else {
      image-rendering: $mode;
  }
}
